/*
 * Copyright (C) 2011 CrystalRange
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.crystalrange.help.web;

import org.crystalrange.help.service.HelpFolderService;
import org.crystalrange.help.service.HelpItemService;

public class HelpItemTreeNode extends TreeNode {
    
    private Long id = null;
    private String name = "";
    private String description = "";
    private String location = "";
    private HelpFolderService helpFolderService;
    private HelpItemService helpItemService;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return this.location;
    }

    public HelpFolderService getHelpFolderService() {
        return this.helpFolderService;
    }

    public void setHelpFolderService(HelpFolderService helpFolderService) {
        this.helpFolderService = helpFolderService;
    }

    public HelpItemService getHelpItemService() {
        return this.helpItemService;
    }

    public void setHelpItemService(HelpItemService helpItemService) {
        this.helpItemService = helpItemService;
    }

    @Override
    public void readChildren() {
    }

    @Override
    public boolean isLeaf() {
        return true;
    }
}